import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:fristflutter/src/framework/app_start_action.dart';
import 'package:fristflutter/src/framework/state.dart';

class AppStartBloc extends Cubit<AppStatus> {
  final AppStartAction appStartAction;
  AppStartBloc({required this.appStartAction}): super(const AppStarting());
  
  void startApp() async {
    emit(const AppStarting());

    try {
      /// todo
    } catch (e, s) {
      emit(AppStartFailed(e, s));
      return;
    }

    emit( AppStartSuccess());
  }
}